Dynomotion

Group: DynoMotion Message: 2153 From: bradodarb Date: 11/6/2011
Subject: DynoMotion .net update
Tom and all::


I have updated the KMotion_dotNet project and it can be downloaded here:

http://sourceforge.net/projects/cnctw/files/DynoMotion%20c%23/KMotion_dotNet.zip/download


Along with the documentation being flushed out, I have added support for IO and Axis access without _Controller.WriteLine calls.

Now we have KM_IO and KM_Axis which are lightweight objects meant to represent a bit of IO or a single axis channel.

This will make using IO and single axis positioning much more convenient without peppering your code with a bunch of "magic strings".

Check out the docs to see what methods are available.


Also CoordMotion received a new method that will allow you to make a non-blocking Straight Traverse call. You can pass in an object that will be returned to you when the move is completed so you can re-sync things. No need to handle your own multi-threading.


I like docs, so I think the most important thind in the update is an MSDN style CHM help file explaining all the objects and their public members.(Thanks Sandcastle!)

The help file can be downloaded here::

http://sourceforge.net/projects/cnctw/files/DynoMotion%20c%23/KMotion%20.Net.chm/download


Let me know if there are any questions/issues/etc...


Happy coding,

-Brad Murry
Group: DynoMotion Message: 2158 From: himykabibble Date: 11/6/2011
Subject: Re: DynoMotion .net update
Brad,

Is that help file really valid? I downloaded it, and when I open it, I get the navigation pane on the left, with all the chapters and section headers, but no matter what I do, the content pane on the right just says "Navigation to the webpage was cancelled".

Regards,
Ray L.

--- In DynoMotion@yahoogroups.com, "bradodarb" <bradodarb@...> wrote:
>
> Tom and all::
>
>
> I have updated the KMotion_dotNet project and it can be downloaded here:
>
> http://sourceforge.net/projects/cnctw/files/DynoMotion%20c%23/KMotion_dotNet.zip/download
>
>
> Along with the documentation being flushed out, I have added support for IO and Axis access without _Controller.WriteLine calls.
>
> Now we have KM_IO and KM_Axis which are lightweight objects meant to represent a bit of IO or a single axis channel.
>
> This will make using IO and single axis positioning much more convenient without peppering your code with a bunch of "magic strings".
>
> Check out the docs to see what methods are available.
>
>
> Also CoordMotion received a new method that will allow you to make a non-blocking Straight Traverse call. You can pass in an object that will be returned to you when the move is completed so you can re-sync things. No need to handle your own multi-threading.
>
>
> I like docs, so I think the most important thind in the update is an MSDN style CHM help file explaining all the objects and their public members.(Thanks Sandcastle!)
>
> The help file can be downloaded here::
>
> http://sourceforge.net/projects/cnctw/files/DynoMotion%20c%23/KMotion%20.Net.chm/download
>
>
> Let me know if there are any questions/issues/etc...
>
>
> Happy coding,
>
> -Brad Murry
>
Group: DynoMotion Message: 2160 From: Brad Murry Date: 11/6/2011
Subject: Re: DynoMotion .net update
Attachments :

    Yes, it is valid although Windows like to keep things ‘safe’ so you will need to  save the file to your desired location first, then navigate to it.

     

    Right-click and go to properties and on the general tab you will see something similar to the attached picture::

     

    Just click on the [Unblock] button and then you can view it without issues.

     

    (I’m using  Win7 x64, so Vista/XP may be slightly different but you should be able to unlock it from the properties window in some way)

     

     

     

     

    -Brad Murry

    From: DynoMotion@yahoogroups.com [mailto:DynoMotion@yahoogroups.com] On Behalf Of himykabibble
    Sent: Sunday, November 06, 2011 10:52 PM
    To: DynoMotion@yahoogroups.com
    Subject: [DynoMotion] Re: DynoMotion .net update

     

     

    Brad,

    Is that help file really valid? I downloaded it, and when I open it, I get the navigation pane on the left, with all the chapters and section headers, but no matter what I do, the content pane on the right just says "Navigation to the webpage was cancelled".

    Regards,
    Ray L.

    --- In DynoMotion@yahoogroups.com, "bradodarb" <bradodarb@...> wrote:
    >
    > Tom and all::
    >
    >
    > I have updated the KMotion_dotNet project and it can be downloaded here:
    >
    > http://sourceforge.net/projects/cnctw/files/DynoMotion%20c%23/KMotion_dotNet.zip/download
    >
    >
    > Along with the documentation being flushed out, I have added support for IO and Axis access without _Controller.WriteLine calls.
    >
    > Now we have KM_IO and KM_Axis which are lightweight objects meant to represent a bit of IO or a single axis channel.
    >
    > This will make using IO and single axis positioning much more convenient without peppering your code with a bunch of "magic strings".
    >
    > Check out the docs to see what methods are available.
    >
    >
    > Also CoordMotion received a new method that will allow you to make a non-blocking Straight Traverse call. You can pass in an object that will be returned to you when the move is completed so you can re-sync things. No need to handle your own multi-threading.
    >
    >
    > I like docs, so I think the most important thind in the update is an MSDN style CHM help file explaining all the objects and their public members.(Thanks Sandcastle!)
    >
    > The help file can be downloaded here::
    >
    > http://sourceforge.net/projects/cnctw/files/DynoMotion%20c%23/KMotion%20.Net.chm/download
    >
    >
    > Let me know if there are any questions/issues/etc...
    >
    >
    > Happy coding,
    >
    > -Brad Murry
    >

    Group: DynoMotion Message: 2161 From: himykabibble Date: 11/6/2011
    Subject: Re: DynoMotion .net update
    OK, that did it. I've never come across that before!

    Regards,
    Ray L.

    --- In DynoMotion@yahoogroups.com, Brad Murry <bradodarb@...> wrote:
    >
    > Yes, it is valid although Windows like to keep things 'safe' so you will
    > need to save the file to your desired location first, then navigate to it.
    >
    >
    >
    > Right-click and go to properties and on the general tab you will see
    > something similar to the attached picture::
    >
    >
    >
    > Just click on the [Unblock] button and then you can view it without issues.
    >
    >
    >
    > (I'm using Win7 x64, so Vista/XP may be slightly different but you should
    > be able to unlock it from the properties window in some way)
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    > -Brad Murry
    >
    > From: DynoMotion@yahoogroups.com [mailto:DynoMotion@yahoogroups.com] On
    > Behalf Of himykabibble
    > Sent: Sunday, November 06, 2011 10:52 PM
    > To: DynoMotion@yahoogroups.com
    > Subject: [DynoMotion] Re: DynoMotion .net update
    >
    >
    >
    >
    >
    > Brad,
    >
    > Is that help file really valid? I downloaded it, and when I open it, I get
    > the navigation pane on the left, with all the chapters and section headers,
    > but no matter what I do, the content pane on the right just says "Navigation
    > to the webpage was cancelled".
    >
    > Regards,
    > Ray L.
    >
    > --- In DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com> ,
    > "bradodarb" <bradodarb@> wrote:
    > >
    > > Tom and all::
    > >
    > >
    > > I have updated the KMotion_dotNet project and it can be downloaded here:
    > >
    > >
    > http://sourceforge.net/projects/cnctw/files/DynoMotion%20c%23/KMotion_dotNet
    > .zip/download
    > >
    > >
    > > Along with the documentation being flushed out, I have added support for
    > IO and Axis access without _Controller.WriteLine calls.
    > >
    > > Now we have KM_IO and KM_Axis which are lightweight objects meant to
    > represent a bit of IO or a single axis channel.
    > >
    > > This will make using IO and single axis positioning much more convenient
    > without peppering your code with a bunch of "magic strings".
    > >
    > > Check out the docs to see what methods are available.
    > >
    > >
    > > Also CoordMotion received a new method that will allow you to make a
    > non-blocking Straight Traverse call. You can pass in an object that will be
    > returned to you when the move is completed so you can re-sync things. No
    > need to handle your own multi-threading.
    > >
    > >
    > > I like docs, so I think the most important thind in the update is an MSDN
    > style CHM help file explaining all the objects and their public
    > members.(Thanks Sandcastle!)
    > >
    > > The help file can be downloaded here::
    > >
    > >
    > http://sourceforge.net/projects/cnctw/files/DynoMotion%20c%23/KMotion%20.Net
    > .chm/download
    > >
    > >
    > > Let me know if there are any questions/issues/etc...
    > >
    > >
    > > Happy coding,
    > >
    > > -Brad Murry
    > >
    >
    Group: DynoMotion Message: 2254 From: geraldft Date: 11/15/2011
    Subject: Re: DynoMotion .net update
    Hi

    Congratulations on the new dotnet in V2.7. I first had the same question about the "help" file - but now it works.

    However - I still have more basic questions about the new programming interface.

    For example. Is there accessible information to explain the advantages or new features it exposes? I have been using VB.net for some time already with the KMviavb.dll. I do not use it for CNC, so many of the more dedicated features like arcs are not relevant. Also I have no idea what "canon_axis" means for example. Also I use 8 axes of coordmotion - even though each axis is programmed independently.

    Is it worth considering rewriting my software with the new Kmotiondotnet.dll and if so why?

    (Without getting too technical...)

    Many Thanks
    Gerald Thompson

    --- In DynoMotion@yahoogroups.com, Brad Murry <bradodarb@...> wrote:
    >
    > Yes, it is valid although Windows like to keep things 'safe' so you will
    > need to save the file to your desired location first, then navigate to it.
    >
    > Right-click and go to properties and on the general tab you will see
    > something similar to the attached picture::
    >
    > Just click on the [Unblock] button and then you can view it without issues.
    >
    Group: DynoMotion Message: 2255 From: Tom Kerekes Date: 11/15/2011
    Subject: Re: DynoMotion .net update
    Hi Gerald,
     
    Brad could probably answer much better than me, but besides being a more up-to-date technology I think it mainly offers two things:
     
    #1 it exposes all the C++ functionality to any .NET language including the GCode interpreter, Trajectory Planner, and CoordMotion Libraries which really wasn't accessible before.
     
    #2 it allows the other languages to discover the available functions and call them without having to create special header files and such yourself.
     
    I don't think either of those things would be of much help for where you are in your development.
     
    HTH
    TK 

    Group: DynoMotion Message: 2268 From: Brad Murry Date: 11/16/2011
    Subject: Re: DynoMotion .net update

    Hello Gerald,

     

    First- Tom pretty much nails it; The new .net interface is meant to be a more complete implementation for robust access to the DynoMotion hardware.

     

    It was also designed to function under 100% managed code with no ‘unsafe’ blocks or com interop requirements. 

     

    Another thing to consider is that KMotion_dotNet is under continual development and the goal is to parallel the development of the DynoMotion libraries.

     

     

     

    I do not have a clear idea of your application is but if you are not experiencing roadblocks due to lack of functionality with the KMviavb.dll, then there is likely no immediate reason to migrate to the newer library.

     

     

     

    That’s the black and white of it, but some arguments could be made to make the switch:

     

    ·         For starters, most of the KM_Controller class’s method calls are pretty much identical to the ones you are using in KMviavb- so there should not be a lot of re-writing.

     

    ·         You also get a cleaner, more “object oriented”  model to work with using the new IO and Axis classes instead of WriteLine and WriteLineReadLine, etc…

     

    ·         I ever you do find the need to use coordinate  motion(linear or arcs), its already there.

     

     

     

    -Brad Murry

     

     

     

    From: DynoMotion@yahoogroups.com [mailto:DynoMotion@yahoogroups.com] On Behalf Of Tom Kerekes
    Sent: Tuesday, November 15, 2011 6:01 PM
    To: DynoMotion@yahoogroups.com
    Subject: Re: [DynoMotion] Re: DynoMotion .net update

     

     

    Hi Gerald,

     

    Brad could probably answer much better than me, but besides being a more up-to-date technology I think it mainly offers two things:

     

    #1 it exposes all the C++ functionality to any .NET language including the GCode interpreter, Trajectory Planner, and CoordMotion Libraries which really wasn't accessible before.

     

    #2 it allows the other languages to discover the available functions and call them without having to create special header files and such yourself.

     

    I don't think either of those things would be of much help for where you are in your development.

     

    HTH

    TK 

     

    From: geraldft <geraldoft@...>
    To: DynoMotion@yahoogroups.com
    Sent: Tuesday, November 15, 2011 4:40 PM
    Subject: [DynoMotion] Re: DynoMotion .net update

     

    Hi

    Congratulations on the new dotnet in V2.7. I first had the same question about the "help" file - but now it works.

    However - I still have more basic questions about the new programming interface.

    For example. Is there accessible information to explain the advantages or new features it exposes? I have been using VB.net for some time already with the KMviavb.dll. I do not use it for CNC, so many of the more dedicated features like arcs are not relevant. Also I have no idea what "canon_axis" means for example. Also I use 8 axes of coordmotion - even though each axis is programmed independently.

    Is it worth considering rewriting my software with the new Kmotiondotnet.dll and if so why?

    (Without getting too technical...)

    Many Thanks
    Gerald Thompson

    --- In DynoMotion@yahoogroups.com, Brad Murry <bradodarb@...> wrote:
    >
    > Yes, it is valid although Windows like to keep things 'safe' so you will
    > need to save the file to your desired location first, then navigate to it.
    >
    > Right-click and go to properties and on the general tab you will see
    > something similar to the attached picture::
    >
    > Just click on the [Unblock] button and then you can view it without issues.
    >

     

    Group: DynoMotion Message: 2270 From: geraldft Date: 11/16/2011
    Subject: Re: DynoMotion .net update
    Thanks for the reply.

    Seems clearer.. I looked at the VB example but there's probably still a
    bit of a learning curve to migrate.

    My move profiles are generated by the software using graphing techniques
    based on keyframe interpolation. Then I use the LinearEX command to
    feed long lists of move data to the Kflop buffer. This is the part that
    could be improved but mostly it's the USB link that is the limiting
    factor - plus the fact that the buffer eats itself up as it runs - or
    atleast needs to be reloaded after each run.

    Some functions like setting step pulse width still need to be changed
    via c-threads but generally most functions are available.

    In future I plan to implement more realtime 3D virtual models so that
    certain mechanical rig designs can be controlled in XYZ linear
    coordinates. This can be done using c threads, but maybe some other
    developments will take place and lead to new options?

    GT

    --- In DynoMotion@yahoogroups.com, Brad Murry <bradodarb@...> wrote:
    >
    > Hello Gerald,
    >
    >
    >
    > First- Tom pretty much nails it; The new .net interface is meant to be
    a more complete implementation for robust access to the DynoMotion
    hardware.
    >
    > It was also designed to function under 100% managed code with no
    ‘unsafe’ blocks or com interop requirements.
    >
    > Another thing to consider is that KMotion_dotNet is under continual
    development and the goal is to parallel the development of the
    DynoMotion libraries.
    >
    > I do not have a clear idea of your application is but if you are not
    experiencing roadblocks due to lack of functionality with the
    KMviavb.dll, then there is likely no immediate reason to migrate to the
    newer library.
    >
    > That’s the black and white of it, but some arguments could be
    made to make the switch:
    >
    > · For starters, most of the KM_Controller class’s
    method calls are pretty much identical to the ones you are using in
    KMviavb- so there should not be a lot of re-writing.
    >
    > · You also get a cleaner, more “object
    oriented” model to work with using the new IO and Axis classes
    instead of WriteLine and WriteLineReadLine, etc…
    >
    > · I ever you do find the need to use coordinate
    motion(linear or arcs), its already there.
    >
    > -Brad Murry
    >

    > From: DynoMotion@yahoogroups.com [mailto:DynoMotion@yahoogroups.com]
    On Behalf Of Tom Kerekes
    > Sent: Tuesday, November 15, 2011 6:01 PM
    > To: DynoMotion@yahoogroups.com
    > Subject: Re: [DynoMotion] Re: DynoMotion .net update

    > Hi Gerald,

    > Brad could probably answer much better than me, but besides being a
    more up-to-date technology I think it mainly offers two things:

    > #1 it exposes all the C++ functionality to any .NET language including
    the GCode interpreter, Trajectory Planner, and CoordMotion Libraries
    which really wasn't accessible before.
    >
    > #2 it allows the other languages to discover the available functions
    and call them without having to create special header files and such
    yourself.
    >
    > I don't think either of those things would be of much help for where
    you are in your development.

    > HTH
    >
    > TK
    >
    >
    >
    > From: geraldft geraldoft@...
    > To: DynoMotion@yahoogroups.com
    > Sent: Tuesday, November 15, 2011 4:40 PM
    > Subject: [DynoMotion] Re: DynoMotion .net update
    >
    > Hi
    >
    > Congratulations on the new dotnet in V2.7. I first had the same
    question about the "help" file - but now it works.
    >
    > However - I still have more basic questions about the new programming
    interface.
    >
    > For example. Is there accessible information to explain the advantages
    or new features it exposes? I have been using VB.net <http://vb.net/>
    for some time already with the KMviavb.dll. I do not use it for CNC, so
    many of the more dedicated features like arcs are not relevant. Also I
    have no idea what "canon_axis" means for example. Also I use 8 axes of
    coordmotion - even though each axis is programmed independently.
    >
    > Is it worth considering rewriting my software with the new
    Kmotiondotnet.dll and if so why?
    >
    > (Without getting too technical...)
    >
    > Many Thanks
    > Gerald Thompson
    >
    > --- In DynoMotion@yahoogroups.com
    <mailto:DynoMotion%40yahoogroups.com> , Brad Murry bradodarb@ wrote:
    > >
    > > Yes, it is valid although Windows like to keep things 'safe' so you
    will
    > > need to save the file to your desired location first, then navigate
    to it.
    > >
    > > Right-click and go to properties and on the general tab you will see
    > > something similar to the attached picture::
    > >
    > > Just click on the [Unblock] button and then you can view it without
    issues.
    > >
    >
    Group: DynoMotion Message: 3035 From: bradodarb Date: 1/10/2012
    Subject: DynoMotion .net update
    The .net DynoMotion libraries have been updated

    Fixed some typo's

    Completed the Main_Status implementation

    Added Get and Set methods for defining MCode Actions(untested)


    Download the source here::

    http://sourceforge.net/projects/cnctw/files/DynoMotion%20c%23/KMotion_dotNet.zip/download

    ***You must open BuildAllLibs.sln and rebuild all in release mode to update your DLL's


    ---Or---

    Download the dll's and place in your C:\KMotion428\KMotion\Release\

    here::

    http://sourceforge.net/projects/cnctw/files/DynoMotion%20c%23/KMotion_dotNet%20dlls.zip/download



    Happy coding,

    Brad Murry
    Group: DynoMotion Message: 3046 From: Tom Kerekes Date: 1/10/2012
    Subject: Re: DynoMotion .net update
    Thanks so much Brad.
     
    Kevin were you able to use this?
     
    Thanks
    TK

    Group: DynoMotion Message: 3048 From: fireup_kev Date: 1/10/2012
    Subject: Re: DynoMotion .net update
    Tom, Brad,
    I was able to get the MCode to to execute C Program in KFLOP and Set/Clear Bits but I have no way of assigning a UserMCodeCallback to an event.

    Also there seem to be a 1-off error in the Main_Status
    GetPosition(0) refers to the first axis, but GetEnabled(1) also refers to the same axis.

    The lower bits (0-31) also have 1-off error (the higher and virtual bits are fine), I had to do something like this..

    MainStatus.GetBitsState(bit > 31 ? bit : bit + 1);


    --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
    >
    > Thanks so much Brad.
    >  
    > Kevin were you able to use this?
    >  
    > Thanks
    > TK
    >
    > From: bradodarb <bradodarb@...>
    > To: DynoMotion@yahoogroups.com
    > Sent: Tuesday, January 10, 2012 9:34 AM
    > Subject: [DynoMotion] DynoMotion .net update
    >
    >
    >  
    > The .net DynoMotion libraries have been updated
    >
    > Fixed some typo's
    >
    > Completed the Main_Status implementation
    >
    > Added Get and Set methods for defining MCode Actions(untested)
    >
    > Download the source here::
    >
    > http://sourceforge.net/projects/cnctw/files/DynoMotion%20c%23/KMotion_dotNet.zip/download
    >
    > ***You must open BuildAllLibs.sln and rebuild all in release mode to update your DLL's
    >
    > ---Or---
    >
    > Download the dll's and place in your C:\KMotion428\KMotion\Release\
    >
    > here::
    >
    > http://sourceforge.net/projects/cnctw/files/DynoMotion%20c%23/KMotion_dotNet%20dlls.zip/download
    >
    > Happy coding,
    >
    > Brad Murry
    >
    Group: DynoMotion Message: 3050 From: Brad Murry Date: 1/10/2012
    Subject: Re: DynoMotion .net update

      I’ll have a look, thanks for the detailed feedback Kevin.

     

    -Brad Murry

     

    From: DynoMotion@yahoogroups.com [mailto:DynoMotion@yahoogroups.com] On Behalf Of fireup_kev
    Sent: Tuesday, January 10, 2012 7:54 PM
    To: DynoMotion@yahoogroups.com
    Subject: [DynoMotion] Re: DynoMotion .net update

     

     

    Tom, Brad,
    I was able to get the MCode to to execute C Program in KFLOP and Set/Clear Bits but I have no way of assigning a UserMCodeCallback to an event.

    Also there seem to be a 1-off error in the Main_Status
    GetPosition(0) refers to the first axis, but GetEnabled(1) also refers to the same axis.

    The lower bits (0-31) also have 1-off error (the higher and virtual bits are fine), I had to do something like this..

    MainStatus.GetBitsState(bit > 31 ? bit : bit + 1);

    --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
    >
    > Thanks so much Brad.
    >  
    > Kevin were you able to use this?
    >  
    > Thanks
    > TK
    >
    > From: bradodarb <bradodarb@...>
    > To: DynoMotion@yahoogroups.com
    > Sent: Tuesday, January 10, 2012 9:34 AM
    > Subject: [DynoMotion] DynoMotion .net update
    >
    >
    >  
    > The .net DynoMotion libraries have been updated
    >
    > Fixed some typo's
    >
    > Completed the Main_Status implementation
    >
    > Added Get and Set methods for defining MCode Actions(untested)
    >
    > Download the source here::
    >
    > http://sourceforge.net/projects/cnctw/files/DynoMotion%20c%23/KMotion_dotNet.zip/download
    >
    > ***You must open BuildAllLibs.sln and rebuild all in release mode to update your DLL's
    >
    > ---Or---
    >
    > Download the dll's and place in your C:\KMotion428\KMotion\Release\
    >
    > here::
    >
    > http://sourceforge.net/projects/cnctw/files/DynoMotion%20c%23/KMotion_dotNet%20dlls.zip/download
    >
    > Happy coding,
    >
    > Brad Murry
    >

    Group: DynoMotion Message: 3054 From: Tom Kerekes Date: 1/10/2012
    Subject: Re: DynoMotion .net update
    Hi Brad,
     
    Yes it looks like we are not exposing
     
    void SetUserMCodeCallback(G_M_USER_CALLBACK *UserFn);
     
    Regards
    TK

    Group: DynoMotion Message: 3055 From: Brad Murry Date: 1/10/2012
    Subject: Re: DynoMotion .net update

    Ahh….

     

    I was setting SetUserCallback ß What is this for then?

     

     

    I will exposed the other callback as well.

     

    -Brad Murry

     

    From: DynoMotion@yahoogroups.com [mailto:DynoMotion@yahoogroups.com] On Behalf Of Tom Kerekes
    Sent: Tuesday, January 10, 2012 10:11 PM
    To: DynoMotion@yahoogroups.com
    Subject: Re: [DynoMotion] Re: DynoMotion .net update

     

     

    Hi Brad,

     

    Yes it looks like we are not exposing

     

    void SetUserMCodeCallback(G_M_USER_CALLBACK *UserFn);

     

    Regards

    TK

     

    From: Brad Murry <bradodarb@...>
    To: DynoMotion@yahoogroups.com
    Sent: Tuesday, January 10, 2012 7:39 PM
    Subject: RE: [DynoMotion] Re: DynoMotion .net update

     

     

      I’ll have a look, thanks for the detailed feedback Kevin.

     

    -Brad Murry

     

    From: DynoMotion@yahoogroups.com [mailto:DynoMotion@yahoogroups.com] On Behalf Of fireup_kev
    Sent: Tuesday, January 10, 2012 7:54 PM
    To: DynoMotion@yahoogroups.com
    Subject: [DynoMotion] Re: DynoMotion .net update

     

     

    Tom, Brad,
    I was able to get the MCode to to execute C Program in KFLOP and Set/Clear Bits but I have no way of assigning a UserMCodeCallback to an event.

    Also there seem to be a 1-off error in the Main_Status
    GetPosition(0) refers to the first axis, but GetEnabled(1) also refers to the same axis.

    The lower bits (0-31) also have 1-off error (the higher and virtual bits are fine), I had to do something like this..

    MainStatus.GetBitsState(bit > 31 ? bit : bit + 1);

    --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
    >
    > Thanks so much Brad.
    >  
    > Kevin were you able to use this?
    >  
    > Thanks
    > TK
    >
    > From: bradodarb <bradodarb@...>
    > To: DynoMotion@yahoogroups.com
    > Sent: Tuesday, January 10, 2012 9:34 AM
    > Subject: [DynoMotion] DynoMotion .net update
    >
    >
    >  
    > The .net DynoMotion libraries have been updated
    >
    > Fixed some typo's
    >
    > Completed the Main_Status implementation
    >
    > Added Get and Set methods for defining MCode Actions(untested)
    >
    > Download the source here::
    >
    > http://sourceforge.net/projects/cnctw/files/DynoMotion%20c%23/KMotion_dotNet.zip/download
    >
    > ***You must open BuildAllLibs.sln and rebuild all in release mode to update your DLL's
    >
    > ---Or---
    >
    > Download the dll's and place in your C:\KMotion428\KMotion\Release\
    >
    > here::
    >
    > http://sourceforge.net/projects/cnctw/files/DynoMotion%20c%23/KMotion_dotNet%20dlls.zip/download
    >
    > Happy coding,
    >
    > Brad Murry
    >

     

    Group: DynoMotion Message: 3057 From: Brad Murry Date: 1/10/2012
    Subject: Re: DynoMotion .net update

    Nevermind…

     

    SetUserCallback is for (USR, string)

     

     

    SetUserMCodeCallback returns the indexed Mcode (like M6 returns 6)

     

     

    Correct?

     

    -Brad Murry

     

    From: DynoMotion@yahoogroups.com [mailto:DynoMotion@yahoogroups.com] On Behalf Of Brad Murry
    Sent: Tuesday, January 10, 2012 11:28 PM
    To: DynoMotion@yahoogroups.com
    Subject: RE: [DynoMotion] Re: DynoMotion .net update

     

     

    Ahh….

     

    I was setting SetUserCallback ß What is this for then?

     

     

    I will exposed the other callback as well.

     

    -Brad Murry

     

    From: DynoMotion@yahoogroups.com [mailto:DynoMotion@yahoogroups.com] On Behalf Of Tom Kerekes
    Sent: Tuesday, January 10, 2012 10:11 PM
    To: DynoMotion@yahoogroups.com
    Subject: Re: [DynoMotion] Re: DynoMotion .net update

     

     

    Hi Brad,

     

    Yes it looks like we are not exposing

     

    void SetUserMCodeCallback(G_M_USER_CALLBACK *UserFn);

     

    Regards

    TK

     

    From: Brad Murry <bradodarb@...>
    To: DynoMotion@yahoogroups.com
    Sent: Tuesday, January 10, 2012 7:39 PM
    Subject: RE: [DynoMotion] Re: DynoMotion .net update

     

     

      I’ll have a look, thanks for the detailed feedback Kevin.

     

    -Brad Murry

     

    From: DynoMotion@yahoogroups.com [mailto:DynoMotion@yahoogroups.com] On Behalf Of fireup_kev
    Sent: Tuesday, January 10, 2012 7:54 PM
    To: DynoMotion@yahoogroups.com
    Subject: [DynoMotion] Re: DynoMotion .net update

     

     

    Tom, Brad,
    I was able to get the MCode to to execute C Program in KFLOP and Set/Clear Bits but I have no way of assigning a UserMCodeCallback to an event.

    Also there seem to be a 1-off error in the Main_Status
    GetPosition(0) refers to the first axis, but GetEnabled(1) also refers to the same axis.

    The lower bits (0-31) also have 1-off error (the higher and virtual bits are fine), I had to do something like this..

    MainStatus.GetBitsState(bit > 31 ? bit : bit + 1);

    --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
    >
    > Thanks so much Brad.
    >  
    > Kevin were you able to use this?
    >  
    > Thanks
    > TK
    >
    > From: bradodarb <bradodarb@...>
    > To: DynoMotion@yahoogroups.com
    > Sent: Tuesday, January 10, 2012 9:34 AM
    > Subject: [DynoMotion] DynoMotion .net update
    >
    >
    >  
    > The .net DynoMotion libraries have been updated
    >
    > Fixed some typo's
    >
    > Completed the Main_Status implementation
    >
    > Added Get and Set methods for defining MCode Actions(untested)
    >
    > Download the source here::
    >
    > http://sourceforge.net/projects/cnctw/files/DynoMotion%20c%23/KMotion_dotNet.zip/download
    >
    > ***You must open BuildAllLibs.sln and rebuild all in release mode to update your DLL's
    >
    > ---Or---
    >
    > Download the dll's and place in your C:\KMotion428\KMotion\Release\
    >
    > here::
    >
    > http://sourceforge.net/projects/cnctw/files/DynoMotion%20c%23/KMotion_dotNet%20dlls.zip/download
    >
    > Happy coding,
    >
    > Brad Murry
    >

     

    Group: DynoMotion Message: 3058 From: Tom Kerekes Date: 1/10/2012
    Subject: Re: DynoMotion .net update
    Hi Brad,
     
    That is for the Comment form of callback (USR,XXXXX)
     
    Sorry for the poor choice of naming.
     
    Thanks
    TK
     
    Group: DynoMotion Message: 3059 From: Tom Kerekes Date: 1/10/2012
    Subject: Re: DynoMotion .net update
    Correct Brad
     
    TK

    Group: DynoMotion Message: 3075 From: fireup_kev Date: 1/12/2012
    Subject: Re: DynoMotion .net update
    Any updates on this?
    Thanks,
    Kevin

    --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
    >
    > Hi Brad,
    >  
    > That is for the Comment form of callback (USR,XXXXX)
    >  
    > Sorry for the poor choice of naming.
    >  
    > Thanks
    > TK
    >  
    > From: Brad Murry <bradodarb@...>
    > To: DynoMotion@yahoogroups.com
    > Sent: Tuesday, January 10, 2012 10:27 PM
    > Subject: RE: [DynoMotion] Re: DynoMotion .net update
    >
    >
    >  
    > Ahh….
    >  
    > I was setting SetUserCallback ßWhat is this for then?
    >  
    >  
    > I will exposed the other callback as well.
    >  
    > -Brad Murry
    >  
    > From:DynoMotion@yahoogroups.com [mailto:DynoMotion@yahoogroups.com] On Behalf Of Tom Kerekes
    > Sent: Tuesday, January 10, 2012 10:11 PM
    > To: DynoMotion@yahoogroups.com
    > Subject: Re: [DynoMotion] Re: DynoMotion .net update
    >  
    >  
    > Hi Brad,
    >  
    > Yes it looks like we are not exposing
    >  
    > voidSetUserMCodeCallback(G_M_USER_CALLBACK *UserFn);
    >  
    > Regards
    > TK
    >  
    > From:Brad Murry <bradodarb@...>
    > To: DynoMotion@yahoogroups.com
    > Sent: Tuesday, January 10, 2012 7:39 PM
    > Subject: RE: [DynoMotion] Re: DynoMotion .net update
    >  
    >  
    >   I’ll have a look, thanks for the detailed feedback Kevin.
    >  
    > -Brad Murry
    >  
    > From:DynoMotion@yahoogroups.com [mailto:DynoMotion@yahoogroups.com] On Behalf Of fireup_kev
    > Sent: Tuesday, January 10, 2012 7:54 PM
    > To: DynoMotion@yahoogroups.com
    > Subject: [DynoMotion] Re: DynoMotion .net update
    >  
    >  
    > Tom, Brad,
    > I was able to get the MCode to to execute C Program in KFLOP and Set/Clear Bits but I have no way of assigning a UserMCodeCallback to an event.
    >
    > Also there seem to be a 1-off error in the Main_Status
    > GetPosition(0) refers to the first axis, but GetEnabled(1) also refers to the same axis.
    >
    > The lower bits (0-31) also have 1-off error (the higher and virtual bits are fine), I had to do something like this..
    >
    > MainStatus.GetBitsState(bit > 31 ? bit : bit + 1);
    >
    > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
    > >
    > > Thanks so much Brad.
    > >  
    > > Kevin were you able to use this?
    > >  
    > > Thanks
    > > TK
    > >
    > > From: bradodarb <bradodarb@>
    > > To: DynoMotion@yahoogroups.com
    > > Sent: Tuesday, January 10, 2012 9:34 AM
    > > Subject: [DynoMotion] DynoMotion .net update
    > >
    > >
    > >  
    > > The .net DynoMotion libraries have been updated
    > >
    > > Fixed some typo's
    > >
    > > Completed the Main_Status implementation
    > >
    > > Added Get and Set methods for defining MCode Actions(untested)
    > >
    > > Download the source here::
    > >
    > > http://sourceforge.net/projects/cnctw/files/DynoMotion%20c%23/KMotion_dotNet.zip/download
    > >
    > > ***You must open BuildAllLibs.sln and rebuild all in release mode to update your DLL's
    > >
    > > ---Or---
    > >
    > > Download the dll's and place in your C:\KMotion428\KMotion\Release\
    > >
    > > here::
    > >
    > > http://sourceforge.net/projects/cnctw/files/DynoMotion%20c%23/KMotion_dotNet%20dlls.zip/download
    > >
    > > Happy coding,
    > >
    > > Brad Murry
    > >
    >  
    >
    Group: DynoMotion Message: 3076 From: Brad Murry Date: 1/12/2012
    Subject: Re: DynoMotion .net update

    Hey Kevin,

     

    It is implemented, just need to do a quick test when I get a chance.

     

    -Brad Murry

     

    From: DynoMotion@yahoogroups.com [mailto:DynoMotion@yahoogroups.com] On Behalf Of fireup_kev
    Sent: Thursday, January 12, 2012 9:16 AM
    To: DynoMotion@yahoogroups.com
    Subject: [DynoMotion] Re: DynoMotion .net update

     

     

    Any updates on this?
    Thanks,
    Kevin

    --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
    >
    > Hi Brad,
    >  
    > That is for the Comment form of callback (USR,XXXXX)
    >  
    > Sorry for the poor choice of naming.
    >  
    > Thanks
    > TK
    >  
    > From: Brad Murry <bradodarb@...>
    > To: DynoMotion@yahoogroups.com
    > Sent: Tuesday, January 10, 2012 10:27 PM
    > Subject: RE: [DynoMotion] Re: DynoMotion .net update
    >
    >
    >  
    > Ahh….
    >  
    > I was setting SetUserCallback ßWhat is this for then?
    >  
    >  
    > I will exposed the other callback as well.
    >  
    > -Brad Murry
    >  
    > From:DynoMotion@yahoogroups.com [mailto:DynoMotion@yahoogroups.com] On Behalf Of Tom Kerekes
    > Sent: Tuesday, January 10, 2012 10:11 PM
    > To: DynoMotion@yahoogroups.com
    > Subject: Re: [DynoMotion] Re: DynoMotion .net update
    >  
    >  
    > Hi Brad,
    >  
    > Yes it looks like we are not exposing
    >  
    > voidSetUserMCodeCallback(G_M_USER_CALLBACK *UserFn);
    >  
    > Regards
    > TK
    >  
    > From:Brad Murry <bradodarb@...>
    > To: DynoMotion@yahoogroups.com
    > Sent: Tuesday, January 10, 2012 7:39 PM
    > Subject: RE: [DynoMotion] Re: DynoMotion .net update
    >  
    >  
    >   I’ll have a look, thanks for the detailed feedback Kevin.
    >  
    > -Brad Murry
    >  
    > From:DynoMotion@yahoogroups.com [mailto:DynoMotion@yahoogroups.com] On Behalf Of fireup_kev
    > Sent: Tuesday, January 10, 2012 7:54 PM
    > To: DynoMotion@yahoogroups.com
    > Subject: [DynoMotion] Re: DynoMotion .net update
    >  
    >  
    > Tom, Brad,
    > I was able to get the MCode to to execute C Program in KFLOP and Set/Clear Bits but I have no way of assigning a UserMCodeCallback to an event.
    >
    > Also there seem to be a 1-off error in the Main_Status
    > GetPosition(0) refers to the first axis, but GetEnabled(1) also refers to the same axis.
    >
    > The lower bits (0-31) also have 1-off error (the higher and virtual bits are fine), I had to do something like this..
    >
    > MainStatus.GetBitsState(bit > 31 ? bit : bit + 1);
    >
    > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
    > >
    > > Thanks so much Brad.
    > >  
    > > Kevin were you able to use this?
    > >  
    > > Thanks
    > > TK
    > >
    > > From: bradodarb <bradodarb@>
    > > To: DynoMotion@yahoogroups.com
    > > Sent: Tuesday, January 10, 2012 9:34 AM
    > > Subject: [DynoMotion] DynoMotion .net update
    > >
    > >
    > >  
    > > The .net DynoMotion libraries have been updated
    > >
    > > Fixed some typo's
    > >
    > > Completed the Main_Status implementation
    > >
    > > Added Get and Set methods for defining MCode Actions(untested)
    > >
    > > Download the source here::
    > >
    > > http://sourceforge.net/projects/cnctw/files/DynoMotion%20c%23/KMotion_dotNet.zip/download
    > >
    > > ***You must open BuildAllLibs.sln and rebuild all in release mode to update your DLL's
    > >
    > > ---Or---
    > >
    > > Download the dll's and place in your C:\KMotion428\KMotion\Release\
    > >
    > > here::
    > >
    > > http://sourceforge.net/projects/cnctw/files/DynoMotion%20c%23/KMotion_dotNet%20dlls.zip/download
    > >
    > > Happy coding,
    > >
    > > Brad Murry
    > >
    >  
    >

    Group: DynoMotion Message: 3084 From: bradodarb Date: 1/12/2012
    Subject: Re: DynoMotion .net update
    OK, new DynoMotion.net libs are available here::


    http://sourceforge.net/projects/cnctw/files/DynoMotion%20c%23/KMotion_dotNet.zip/download


    And the compiled dll's are here::

    http://sourceforge.net/projects/cnctw/files/DynoMotion%20c%23/KMotion_dotNet%20dlls.zip/download



    Fixed a bug getting the Mcode Action values.

    Implemented the Mcode user callback event-
    _Controller.Interpreter.InterpreterUserCallbackRequested += new KMotion_dotNet.KM_Controller.KM_Interpreter.KM_GCodeInterpreterUserCallbackHandler(Interpreter_InterpreterUserCallbackRequested);


    Enjoy,

    Brad Murry


    --- In DynoMotion@yahoogroups.com, Brad Murry <bradodarb@...> wrote:
    >
    > Hey Kevin,
    >
    >
    >
    > It is implemented, just need to do a quick test when I get a chance.
    >
    >
    >
    > -Brad Murry
    >
    >
    >
    > From: DynoMotion@yahoogroups.com [mailto:DynoMotion@yahoogroups.com] On Behalf Of fireup_kev
    > Sent: Thursday, January 12, 2012 9:16 AM
    > To: DynoMotion@yahoogroups.com
    > Subject: [DynoMotion] Re: DynoMotion .net update
    >
    >
    >
    >
    >
    > Any updates on this?
    > Thanks,
    > Kevin
    >
    > --- In DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com> , Tom Kerekes <tk@> wrote:
    > >
    > > Hi Brad,
    > > Â
    > > That is for the Comment form of callback (USR,XXXXX)
    > > Â
    > > Sorry for the poor choice of naming.
    > > Â
    > > Thanks
    > > TK
    > > Â
    > > From: Brad Murry <bradodarb@>
    > > To: DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com>
    > > Sent: Tuesday, January 10, 2012 10:27 PM
    > > Subject: RE: [DynoMotion] Re: DynoMotion .net update
    > >
    > >
    > > Â
    > > Ahh….
    > > Â
    > > I was setting SetUserCallback ßWhat is this for then?
    > > Â
    > > Â
    > > I will exposed the other callback as well.
    > > Â
    > > -Brad Murry
    > > Â
    > > From:DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com> [mailto:DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com> ] On Behalf Of Tom Kerekes
    > > Sent: Tuesday, January 10, 2012 10:11 PM
    > > To: DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com>
    > > Subject: Re: [DynoMotion] Re: DynoMotion .net update
    > > Â
    > > Â
    > > Hi Brad,
    > > Â
    > > Yes it looks like we are not exposing
    > > Â
    > > voidSetUserMCodeCallback(G_M_USER_CALLBACK *UserFn);
    > > Â
    > > Regards
    > > TK
    > > Â
    > > From:Brad Murry <bradodarb@>
    > > To: DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com>
    > > Sent: Tuesday, January 10, 2012 7:39 PM
    > > Subject: RE: [DynoMotion] Re: DynoMotion .net update
    > > Â
    > > Â
    > >  I’ll have a look, thanks for the detailed feedback Kevin.
    > > Â
    > > -Brad Murry
    > > Â
    > > From:DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com> [mailto:DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com> ] On Behalf Of fireup_kev
    > > Sent: Tuesday, January 10, 2012 7:54 PM
    > > To: DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com>
    > > Subject: [DynoMotion] Re: DynoMotion .net update
    > > Â
    > > Â
    > > Tom, Brad,
    > > I was able to get the MCode to to execute C Program in KFLOP and Set/Clear Bits but I have no way of assigning a UserMCodeCallback to an event.
    > >
    > > Also there seem to be a 1-off error in the Main_Status
    > > GetPosition(0) refers to the first axis, but GetEnabled(1) also refers to the same axis.
    > >
    > > The lower bits (0-31) also have 1-off error (the higher and virtual bits are fine), I had to do something like this..
    > >
    > > MainStatus.GetBitsState(bit > 31 ? bit : bit + 1);
    > >
    > > --- In DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com> , Tom Kerekes <tk@> wrote:
    > > >
    > > > Thanks so much Brad.
    > > > ÂÂ
    > > > Kevin were you able to use this?
    > > > ÂÂ
    > > > Thanks
    > > > TK
    > > >
    > > > From: bradodarb <bradodarb@>
    > > > To: DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com>
    > > > Sent: Tuesday, January 10, 2012 9:34 AM
    > > > Subject: [DynoMotion] DynoMotion .net update
    > > >
    > > >
    > > > ÂÂ
    > > > The .net DynoMotion libraries have been updated
    > > >
    > > > Fixed some typo's
    > > >
    > > > Completed the Main_Status implementation
    > > >
    > > > Added Get and Set methods for defining MCode Actions(untested)
    > > >
    > > > Download the source here::
    > > >
    > > > http://sourceforge.net/projects/cnctw/files/DynoMotion%20c%23/KMotion_dotNet.zip/download
    > > >
    > > > ***You must open BuildAllLibs.sln and rebuild all in release mode to update your DLL's
    > > >
    > > > ---Or---
    > > >
    > > > Download the dll's and place in your C:\KMotion428\KMotion\Release\
    > > >
    > > > here::
    > > >
    > > > http://sourceforge.net/projects/cnctw/files/DynoMotion%20c%23/KMotion_dotNet%20dlls.zip/download
    > > >
    > > > Happy coding,
    > > >
    > > > Brad Murry
    > > >
    > > Â
    > >
    >
    Group: DynoMotion Message: 3085 From: bradodarb Date: 1/12/2012
    Subject: Re: DynoMotion .net update
    Actually, the Mcode callback signature is as follows::

    _Controller.Interpreter.InterpreterUserMCodeCallbackRequested += new KMotion_dotNet.KM_Controller.KM_Interpreter.KM_GCodeInterpreterUserMcodeCallbackHandler(Interpreter_InterpreterUserMCodeCallbackRequested);


    -Brad Murry

    --- In DynoMotion@yahoogroups.com, "bradodarb" <bradodarb@...> wrote:
    >
    > OK, new DynoMotion.net libs are available here::
    >
    >
    > http://sourceforge.net/projects/cnctw/files/DynoMotion%20c%23/KMotion_dotNet.zip/download
    >
    >
    > And the compiled dll's are here::
    >
    > http://sourceforge.net/projects/cnctw/files/DynoMotion%20c%23/KMotion_dotNet%20dlls.zip/download
    >
    >
    >
    > Fixed a bug getting the Mcode Action values.
    >
    > Implemented the Mcode user callback event-
    > _Controller.Interpreter.InterpreterUserCallbackRequested += new KMotion_dotNet.KM_Controller.KM_Interpreter.KM_GCodeInterpreterUserCallbackHandler(Interpreter_InterpreterUserCallbackRequested);
    >
    >
    > Enjoy,
    >
    > Brad Murry
    >
    >
    > --- In DynoMotion@yahoogroups.com, Brad Murry <bradodarb@> wrote:
    > >
    > > Hey Kevin,
    > >
    > >
    > >
    > > It is implemented, just need to do a quick test when I get a chance.
    > >
    > >
    > >
    > > -Brad Murry
    > >
    > >
    > >
    > > From: DynoMotion@yahoogroups.com [mailto:DynoMotion@yahoogroups.com] On Behalf Of fireup_kev
    > > Sent: Thursday, January 12, 2012 9:16 AM
    > > To: DynoMotion@yahoogroups.com
    > > Subject: [DynoMotion] Re: DynoMotion .net update
    > >
    > >
    > >
    > >
    > >
    > > Any updates on this?
    > > Thanks,
    > > Kevin
    > >
    > > --- In DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com> , Tom Kerekes <tk@> wrote:
    > > >
    > > > Hi Brad,
    > > > Â
    > > > That is for the Comment form of callback (USR,XXXXX)
    > > > Â
    > > > Sorry for the poor choice of naming.
    > > > Â
    > > > Thanks
    > > > TK
    > > > Â
    > > > From: Brad Murry <bradodarb@>
    > > > To: DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com>
    > > > Sent: Tuesday, January 10, 2012 10:27 PM
    > > > Subject: RE: [DynoMotion] Re: DynoMotion .net update
    > > >
    > > >
    > > > Â
    > > > Ahh….
    > > > Â
    > > > I was setting SetUserCallback ßWhat is this for then?
    > > > Â
    > > > Â
    > > > I will exposed the other callback as well.
    > > > Â
    > > > -Brad Murry
    > > > Â
    > > > From:DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com> [mailto:DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com> ] On Behalf Of Tom Kerekes
    > > > Sent: Tuesday, January 10, 2012 10:11 PM
    > > > To: DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com>
    > > > Subject: Re: [DynoMotion] Re: DynoMotion .net update
    > > > Â
    > > > Â
    > > > Hi Brad,
    > > > Â
    > > > Yes it looks like we are not exposing
    > > > Â
    > > > voidSetUserMCodeCallback(G_M_USER_CALLBACK *UserFn);
    > > > Â
    > > > Regards
    > > > TK
    > > > Â
    > > > From:Brad Murry <bradodarb@>
    > > > To: DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com>
    > > > Sent: Tuesday, January 10, 2012 7:39 PM
    > > > Subject: RE: [DynoMotion] Re: DynoMotion .net update
    > > > Â
    > > > Â
    > > >  I’ll have a look, thanks for the detailed feedback Kevin.
    > > > Â
    > > > -Brad Murry
    > > > Â
    > > > From:DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com> [mailto:DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com> ] On Behalf Of fireup_kev
    > > > Sent: Tuesday, January 10, 2012 7:54 PM
    > > > To: DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com>
    > > > Subject: [DynoMotion] Re: DynoMotion .net update
    > > > Â
    > > > Â
    > > > Tom, Brad,
    > > > I was able to get the MCode to to execute C Program in KFLOP and Set/Clear Bits but I have no way of assigning a UserMCodeCallback to an event.
    > > >
    > > > Also there seem to be a 1-off error in the Main_Status
    > > > GetPosition(0) refers to the first axis, but GetEnabled(1) also refers to the same axis.
    > > >
    > > > The lower bits (0-31) also have 1-off error (the higher and virtual bits are fine), I had to do something like this..
    > > >
    > > > MainStatus.GetBitsState(bit > 31 ? bit : bit + 1);
    > > >
    > > > --- In DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com> , Tom Kerekes <tk@> wrote:
    > > > >
    > > > > Thanks so much Brad.
    > > > > ÂÂ
    > > > > Kevin were you able to use this?
    > > > > ÂÂ
    > > > > Thanks
    > > > > TK
    > > > >
    > > > > From: bradodarb <bradodarb@>
    > > > > To: DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com>
    > > > > Sent: Tuesday, January 10, 2012 9:34 AM
    > > > > Subject: [DynoMotion] DynoMotion .net update
    > > > >
    > > > >
    > > > > ÂÂ
    > > > > The .net DynoMotion libraries have been updated
    > > > >
    > > > > Fixed some typo's
    > > > >
    > > > > Completed the Main_Status implementation
    > > > >
    > > > > Added Get and Set methods for defining MCode Actions(untested)
    > > > >
    > > > > Download the source here::
    > > > >
    > > > > http://sourceforge.net/projects/cnctw/files/DynoMotion%20c%23/KMotion_dotNet.zip/download
    > > > >
    > > > > ***You must open BuildAllLibs.sln and rebuild all in release mode to update your DLL's
    > > > >
    > > > > ---Or---
    > > > >
    > > > > Download the dll's and place in your C:\KMotion428\KMotion\Release\
    > > > >
    > > > > here::
    > > > >
    > > > > http://sourceforge.net/projects/cnctw/files/DynoMotion%20c%23/KMotion_dotNet%20dlls.zip/download
    > > > >
    > > > > Happy coding,
    > > > >
    > > > > Brad Murry
    > > > >
    > > > Â
    > > >
    > >
    >
    Group: DynoMotion Message: 3103 From: fireup_kev Date: 1/13/2012
    Subject: Re: DynoMotion .net update
    UserMCodeCallback seems to work fine now.

    SetOrigin and ChangeFixtureNumber does not seem to work like it should. SetOrgin works only after a couple times after loading gCode, ChangeFixtureNumber seems to not do anything. How should I use these two functions? Is there other things I have to do before calling these functions?

    Kevin

    --- In DynoMotion@yahoogroups.com, "bradodarb" <bradodarb@...> wrote:
    >
    > Actually, the Mcode callback signature is as follows::
    >
    > _Controller.Interpreter.InterpreterUserMCodeCallbackRequested += new KMotion_dotNet.KM_Controller.KM_Interpreter.KM_GCodeInterpreterUserMcodeCallbackHandler(Interpreter_InterpreterUserMCodeCallbackRequested);
    >
    >
    > -Brad Murry
    >
    > --- In DynoMotion@yahoogroups.com, "bradodarb" <bradodarb@> wrote:
    > >
    > > OK, new DynoMotion.net libs are available here::
    > >
    > >
    > > http://sourceforge.net/projects/cnctw/files/DynoMotion%20c%23/KMotion_dotNet.zip/download
    > >
    > >
    > > And the compiled dll's are here::
    > >
    > > http://sourceforge.net/projects/cnctw/files/DynoMotion%20c%23/KMotion_dotNet%20dlls.zip/download
    > >
    > >
    > >
    > > Fixed a bug getting the Mcode Action values.
    > >
    > > Implemented the Mcode user callback event-
    > > _Controller.Interpreter.InterpreterUserCallbackRequested += new KMotion_dotNet.KM_Controller.KM_Interpreter.KM_GCodeInterpreterUserCallbackHandler(Interpreter_InterpreterUserCallbackRequested);
    > >
    > >
    > > Enjoy,
    > >
    > > Brad Murry
    > >
    > >
    > > --- In DynoMotion@yahoogroups.com, Brad Murry <bradodarb@> wrote:
    > > >
    > > > Hey Kevin,
    > > >
    > > >
    > > >
    > > > It is implemented, just need to do a quick test when I get a chance.
    > > >
    > > >
    > > >
    > > > -Brad Murry
    > > >
    > > >
    > > >
    > > > From: DynoMotion@yahoogroups.com [mailto:DynoMotion@yahoogroups.com] On Behalf Of fireup_kev
    > > > Sent: Thursday, January 12, 2012 9:16 AM
    > > > To: DynoMotion@yahoogroups.com
    > > > Subject: [DynoMotion] Re: DynoMotion .net update
    > > >
    > > >
    > > >
    > > >
    > > >
    > > > Any updates on this?
    > > > Thanks,
    > > > Kevin
    > > >
    > > > --- In DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com> , Tom Kerekes <tk@> wrote:
    > > > >
    > > > > Hi Brad,
    > > > > Â
    > > > > That is for the Comment form of callback (USR,XXXXX)
    > > > > Â
    > > > > Sorry for the poor choice of naming.
    > > > > Â
    > > > > Thanks
    > > > > TK
    > > > > Â
    > > > > From: Brad Murry <bradodarb@>
    > > > > To: DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com>
    > > > > Sent: Tuesday, January 10, 2012 10:27 PM
    > > > > Subject: RE: [DynoMotion] Re: DynoMotion .net update
    > > > >
    > > > >
    > > > > Â
    > > > > Ahh….
    > > > > Â
    > > > > I was setting SetUserCallback ßWhat is this for then?
    > > > > Â
    > > > > Â
    > > > > I will exposed the other callback as well.
    > > > > Â
    > > > > -Brad Murry
    > > > > Â
    > > > > From:DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com> [mailto:DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com> ] On Behalf Of Tom Kerekes
    > > > > Sent: Tuesday, January 10, 2012 10:11 PM
    > > > > To: DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com>
    > > > > Subject: Re: [DynoMotion] Re: DynoMotion .net update
    > > > > Â
    > > > > Â
    > > > > Hi Brad,
    > > > > Â
    > > > > Yes it looks like we are not exposing
    > > > > Â
    > > > > voidSetUserMCodeCallback(G_M_USER_CALLBACK *UserFn);
    > > > > Â
    > > > > Regards
    > > > > TK
    > > > > Â
    > > > > From:Brad Murry <bradodarb@>
    > > > > To: DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com>
    > > > > Sent: Tuesday, January 10, 2012 7:39 PM
    > > > > Subject: RE: [DynoMotion] Re: DynoMotion .net update
    > > > > Â
    > > > > Â
    > > > >  I’ll have a look, thanks for the detailed feedback Kevin.
    > > > > Â
    > > > > -Brad Murry
    > > > > Â
    > > > > From:DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com> [mailto:DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com> ] On Behalf Of fireup_kev
    > > > > Sent: Tuesday, January 10, 2012 7:54 PM
    > > > > To: DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com>
    > > > > Subject: [DynoMotion] Re: DynoMotion .net update
    > > > > Â
    > > > > Â
    > > > > Tom, Brad,
    > > > > I was able to get the MCode to to execute C Program in KFLOP and Set/Clear Bits but I have no way of assigning a UserMCodeCallback to an event.
    > > > >
    > > > > Also there seem to be a 1-off error in the Main_Status
    > > > > GetPosition(0) refers to the first axis, but GetEnabled(1) also refers to the same axis.
    > > > >
    > > > > The lower bits (0-31) also have 1-off error (the higher and virtual bits are fine), I had to do something like this..
    > > > >
    > > > > MainStatus.GetBitsState(bit > 31 ? bit : bit + 1);
    > > > >
    > > > > --- In DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com> , Tom Kerekes <tk@> wrote:
    > > > > >
    > > > > > Thanks so much Brad.
    > > > > > ÂÂ
    > > > > > Kevin were you able to use this?
    > > > > > ÂÂ
    > > > > > Thanks
    > > > > > TK
    > > > > >
    > > > > > From: bradodarb <bradodarb@>
    > > > > > To: DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com>
    > > > > > Sent: Tuesday, January 10, 2012 9:34 AM
    > > > > > Subject: [DynoMotion] DynoMotion .net update
    > > > > >
    > > > > >
    > > > > > ÂÂ
    > > > > > The .net DynoMotion libraries have been updated
    > > > > >
    > > > > > Fixed some typo's
    > > > > >
    > > > > > Completed the Main_Status implementation
    > > > > >
    > > > > > Added Get and Set methods for defining MCode Actions(untested)
    > > > > >
    > > > > > Download the source here::
    > > > > >
    > > > > > http://sourceforge.net/projects/cnctw/files/DynoMotion%20c%23/KMotion_dotNet.zip/download
    > > > > >
    > > > > > ***You must open BuildAllLibs.sln and rebuild all in release mode to update your DLL's
    > > > > >
    > > > > > ---Or---
    > > > > >
    > > > > > Download the dll's and place in your C:\KMotion428\KMotion\Release\
    > > > > >
    > > > > > here::
    > > > > >
    > > > > > http://sourceforge.net/projects/cnctw/files/DynoMotion%20c%23/KMotion_dotNet%20dlls.zip/download
    > > > > >
    > > > > > Happy coding,
    > > > > >
    > > > > > Brad Murry
    > > > > >
    > > > > Â
    > > > >
    > > >
    > >
    >
    Group: DynoMotion Message: 3113 From: Brad Murry Date: 1/14/2012
    Subject: Re: DynoMotion .net update

    Kevin,

    Set origin works for me if you call the following code first::

     

                    _Controller.Interpreter.InitializeOnExecute = false;

                    _Controller.Interpreter.InitializeInterpreter();

     

    This code should be called when you are initializing your system and only needs to be called once.

     

    I have not tested ChangeFixtureNumber, perhaps Tom can tell us when/where/how to use it and what we should expect to happen.

     

    -Brad Murry

     

    From: DynoMotion@yahoogroups.com [mailto:DynoMotion@yahoogroups.com] On Behalf Of fireup_kev
    Sent: Friday, January 13, 2012 10:08 AM
    To: DynoMotion@yahoogroups.com
    Subject: [DynoMotion] Re: DynoMotion .net update

     

     

    UserMCodeCallback seems to work fine now.

    SetOrigin and ChangeFixtureNumber does not seem to work like it should. SetOrgin works only after a couple times after loading gCode, ChangeFixtureNumber seems to not do anything. How should I use these two functions? Is there other things I have to do before calling these functions?

    Kevin

    --- In DynoMotion@yahoogroups.com, "bradodarb" <bradodarb@...> wrote:
    >
    > Actually, the Mcode callback signature is as follows::
    >
    > _Controller.Interpreter.InterpreterUserMCodeCallbackRequested += new KMotion_dotNet.KM_Controller.KM_Interpreter.KM_GCodeInterpreterUserMcodeCallbackHandler(Interpreter_InterpreterUserMCodeCallbackRequested);
    >
    >
    > -Brad Murry
    >
    > --- In DynoMotion@yahoogroups.com, "bradodarb" <bradodarb@> wrote:
    > >
    > > OK, new DynoMotion.net libs are available here::
    > >
    > >
    > > http://sourceforge.net/projects/cnctw/files/DynoMotion%20c%23/KMotion_dotNet.zip/download
    > >
    > >
    > > And the compiled dll's are here::
    > >
    > > http://sourceforge.net/projects/cnctw/files/DynoMotion%20c%23/KMotion_dotNet%20dlls.zip/download
    > >
    > >
    > >
    > > Fixed a bug getting the Mcode Action values.
    > >
    > > Implemented the Mcode user callback event-
    > > _Controller.Interpreter.InterpreterUserCallbackRequested += new KMotion_dotNet.KM_Controller.KM_Interpreter.KM_GCodeInterpreterUserCallbackHandler(Interpreter_InterpreterUserCallbackRequested);
    > >
    > >
    > > Enjoy,
    > >
    > > Brad Murry
    > >
    > >
    > > --- In DynoMotion@yahoogroups.com, Brad Murry <bradodarb@> wrote:
    > > >
    > > > Hey Kevin,
    > > >
    > > >
    > > >
    > > > It is implemented, just need to do a quick test when I get a chance.
    > > >
    > > >
    > > >
    > > > -Brad Murry
    > > >
    > > >
    > > >
    > > > From: DynoMotion@yahoogroups.com [mailto:DynoMotion@yahoogroups.com] On Behalf Of fireup_kev
    > > > Sent: Thursday, January 12, 2012 9:16 AM
    > > > To: DynoMotion@yahoogroups.com
    > > > Subject: [DynoMotion] Re: DynoMotion .net update
    > > >
    > > >
    > > >
    > > >
    > > >
    > > > Any updates on this?
    > > > Thanks,
    > > > Kevin
    > > >
    > > > --- In DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com> , Tom Kerekes <tk@> wrote:
    > > > >
    > > > > Hi Brad,
    > > > > Â
    > > > > That is for the Comment form of callback (USR,XXXXX)
    > > > > Â
    > > > > Sorry for the poor choice of naming.
    > > > > Â
    > > > > Thanks
    > > > > TK
    > > > > Â
    > > > > From: Brad Murry <bradodarb@>
    > > > > To: DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com>
    > > > > Sent: Tuesday, January 10, 2012 10:27 PM
    > > > > Subject: RE: [DynoMotion] Re: DynoMotion .net update
    > > > >
    > > > >
    > > > > Â
    > > > > Ahh….
    > > > > Â
    > > > > I was setting SetUserCallback ßWhat is this for then?
    > > > > Â
    > > > > Â
    > > > > I will exposed the other callback as well.
    > > > > Â
    > > > > -Brad Murry
    > > > > Â
    > > > > From:DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com> [mailto:DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com> ] On Behalf Of Tom Kerekes
    > > > > Sent: Tuesday, January 10, 2012 10:11 PM
    > > > > To: DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com>
    > > > > Subject: Re: [DynoMotion] Re: DynoMotion .net update
    > > > > Â
    > > > > Â
    > > > > Hi Brad,
    > > > > Â
    > > > > Yes it looks like we are not exposing
    > > > > Â
    > > > > voidSetUserMCodeCallback(G_M_USER_CALLBACK *UserFn);
    > > > > Â
    > > > > Regards
    > > > > TK
    > > > > Â
    > > > > From:Brad Murry <bradodarb@>
    > > > > To: DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com>
    > > > > Sent: Tuesday, January 10, 2012 7:39 PM
    > > > > Subject: RE: [DynoMotion] Re: DynoMotion .net update
    > > > > Â
    > > > > Â
    > > > >  I’ll have a look, thanks for the detailed feedback Kevin.
    > > > > Â
    > > > > -Brad Murry
    > > > > Â
    > > > > From:DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com> [mailto:DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com> ] On Behalf Of fireup_kev
    > > > > Sent: Tuesday, January 10, 2012 7:54 PM
    > > > > To: DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com>
    > > > > Subject: [DynoMotion] Re: DynoMotion .net update
    > > > > Â
    > > > > Â
    > > > > Tom, Brad,
    > > > > I was able to get the MCode to to execute C Program in KFLOP and Set/Clear Bits but I have no way of assigning a UserMCodeCallback to an event.
    > > > >
    > > > > Also there seem to be a 1-off error in the Main_Status
    > > > > GetPosition(0) refers to the first axis, but GetEnabled(1) also refers to the same axis.
    > > > >
    > > > > The lower bits (0-31) also have 1-off error (the higher and virtual bits are fine), I had to do something like this..
    > > > >
    > > > > MainStatus.GetBitsState(bit > 31 ? bit : bit + 1);
    > > > >
    > > > > --- In DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com> , Tom Kerekes <tk@> wrote:
    > > > > >
    > > > > > Thanks so much Brad.
    > > > > > ÂÂ
    > > > > > Kevin were you able to use this?
    > > > > > ÂÂ
    > > > > > Thanks
    > > > > > TK
    > > > > >
    > > > > > From: bradodarb <bradodarb@>
    > > > > > To: DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com>
    > > > > > Sent: Tuesday, January 10, 2012 9:34 AM
    > > > > > Subject: [DynoMotion] DynoMotion .net update
    > > > > >
    > > > > >
    > > > > > ÂÂ
    > > > > > The .net DynoMotion libraries have been updated
    > > > > >
    > > > > > Fixed some typo's
    > > > > >
    > > > > > Completed the Main_Status implementation
    > > > > >
    > > > > > Added Get and Set methods for defining MCode Actions(untested)
    > > > > >
    > > > > > Download the source here::
    > > > > >
    > > > > > http://sourceforge.net/projects/cnctw/files/DynoMotion%20c%23/KMotion_dotNet.zip/download
    > > > > >
    > > > > > ***You must open BuildAllLibs.sln and rebuild all in release mode to update your DLL's
    > > > > >
    > > > > > ---Or---
    > > > > >
    > > > > > Download the dll's and place in your C:\KMotion428\KMotion\Release\
    > > > > >
    > > > > > here::
    > > > > >
    > > > > > http://sourceforge.net/projects/cnctw/files/DynoMotion%20c%23/KMotion_dotNet%20dlls.zip/download
    > > > > >
    > > > > > Happy coding,
    > > > > >
    > > > > > Brad Murry
    > > > > >
    > > > > Â
    > > > >
    > > >
    > >
    >

    Group: DynoMotion Message: 3114 From: Tom Kerekes Date: 1/14/2012
    Subject: Re: DynoMotion .net update
     
    Hi Kevin/Brad,
     
    ChangeFixtureNumber is shown below.  The result should be exactly the same as typing G54 and so forth on the MDI.   KMotionCNC uses it for the Fixture Number Dropdown List.  It assumes the origin offsets have somehow been previously set to the desired values.  From GCode you can set origin offsets with:
     
    G10L2P1X0Y0Z0 (Set G54 offset to 0,0,0 used by default)
    G10L2P2X2Y0Z0 (Set G55 offset to 2,0,0)
    G10L2P3X0Y2Z0 (Set G55 offset to 0,2,0)
     
    I think it may be the case that if you change the Origin Offsets they won't "take" until the Fixture Origin is changed or re-selected.
     
    Regards
    TK
     
     
     
    int
    CGCodeInterpreter::ChangeFixtureNumber(int fixture)
    {
    switch (fixture)
    {
        case 1: return rs274ngc_execute("G54");
        case 2: return rs274ngc_execute("G55");
        case 3: return rs274ngc_execute("G56");
        case 4: return rs274ngc_execute("G57");
        case 5: return rs274ngc_execute("G58");
        case 6: return rs274ngc_execute("G59");
        case 7: return rs274ngc_execute("G59.1");
        case 8: return rs274ngc_execute("G59.2");
        case 9: return rs274ngc_execute("G59.3");
    }
    return 0;
    }